home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 32 / Amiga Format AFCD32 (Nov 1998, Issue 117).iso / -seriously_amiga- / programming / c / mesa-2.6 / quantizers / dl1 / basic.h next >
C/C++ Source or Header  |  1998-08-10  |  869b  |  43 lines

  1. /*
  2.  * File: basic.h
  3.  *
  4.  * Header file for #defs and typedefs I often use
  5.  *
  6.  * Copyright (C) 1992-1997 Dennis Lee
  7.  */
  8.  
  9. #ifndef BASIC_H
  10. #define BASIC_H
  11.  
  12. typedef enum {FALSE, TRUE}  boolean;
  13.  
  14. #define schar               signed char
  15. #define sshort              signed short
  16. #define slong               signed long
  17. #define uchar               unsigned char
  18. #define ushort              unsigned short
  19. #define ulong               unsigned long
  20.  
  21. #ifndef NULL
  22. #define NULL                0
  23. #endif
  24. #ifndef SEEK_SET
  25. #define SEEK_SET            0
  26. #endif
  27. #ifndef SEEK_CUR
  28. #define SEEK_CUR            1
  29. #endif
  30. #ifndef SEEK_END
  31. #define SEEK_END            2
  32. #endif
  33.  
  34. #define READ_TYPE           "rb"
  35. #define WRITE_TYPE          "wb"
  36.  
  37. #define IMPORT              extern
  38. #define EXPORT
  39. #define LOCAL               static
  40. #define GLOBAL
  41.  
  42. #endif
  43.